Integrand size = 20, antiderivative size = 543 \[ \int (c+d x)^m (a+b \cosh (e+f x))^3 \, dx=\frac {a^3 (c+d x)^{1+m}}{d (1+m)}+\frac {3 a b^2 (c+d x)^{1+m}}{2 d (1+m)}+\frac {3^{-1-m} b^3 e^{3 e-\frac {3 c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {3 f (c+d x)}{d}\right )}{8 f}+\frac {3\ 2^{-3-m} a b^2 e^{2 e-\frac {2 c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {2 f (c+d x)}{d}\right )}{f}+\frac {3 a^2 b e^{e-\frac {c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {f (c+d x)}{d}\right )}{2 f}+\frac {3 b^3 e^{e-\frac {c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {f (c+d x)}{d}\right )}{8 f}-\frac {3 a^2 b e^{-e+\frac {c f}{d}} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {f (c+d x)}{d}\right )}{2 f}-\frac {3 b^3 e^{-e+\frac {c f}{d}} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {f (c+d x)}{d}\right )}{8 f}-\frac {3\ 2^{-3-m} a b^2 e^{-2 e+\frac {2 c f}{d}} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {2 f (c+d x)}{d}\right )}{f}-\frac {3^{-1-m} b^3 e^{-3 e+\frac {3 c f}{d}} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {3 f (c+d x)}{d}\right )}{8 f} \]
[Out]
Time = 0.57 (sec) , antiderivative size = 543, normalized size of antiderivative = 1.00, number of steps used = 18, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3398, 3388, 2212, 3393} \[ \int (c+d x)^m (a+b \cosh (e+f x))^3 \, dx=\frac {a^3 (c+d x)^{m+1}}{d (m+1)}+\frac {3 a^2 b e^{e-\frac {c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,-\frac {f (c+d x)}{d}\right )}{2 f}-\frac {3 a^2 b e^{\frac {c f}{d}-e} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,\frac {f (c+d x)}{d}\right )}{2 f}+\frac {3 a b^2 2^{-m-3} e^{2 e-\frac {2 c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,-\frac {2 f (c+d x)}{d}\right )}{f}-\frac {3 a b^2 2^{-m-3} e^{\frac {2 c f}{d}-2 e} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,\frac {2 f (c+d x)}{d}\right )}{f}+\frac {3 a b^2 (c+d x)^{m+1}}{2 d (m+1)}+\frac {b^3 3^{-m-1} e^{3 e-\frac {3 c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,-\frac {3 f (c+d x)}{d}\right )}{8 f}+\frac {3 b^3 e^{e-\frac {c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,-\frac {f (c+d x)}{d}\right )}{8 f}-\frac {3 b^3 e^{\frac {c f}{d}-e} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,\frac {f (c+d x)}{d}\right )}{8 f}-\frac {b^3 3^{-m-1} e^{\frac {3 c f}{d}-3 e} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,\frac {3 f (c+d x)}{d}\right )}{8 f} \]
[In]
[Out]
Rule 2212
Rule 3388
Rule 3393
Rule 3398
Rubi steps \begin{align*} \text {integral}& = \int \left (a^3 (c+d x)^m+3 a^2 b (c+d x)^m \cosh (e+f x)+3 a b^2 (c+d x)^m \cosh ^2(e+f x)+b^3 (c+d x)^m \cosh ^3(e+f x)\right ) \, dx \\ & = \frac {a^3 (c+d x)^{1+m}}{d (1+m)}+\left (3 a^2 b\right ) \int (c+d x)^m \cosh (e+f x) \, dx+\left (3 a b^2\right ) \int (c+d x)^m \cosh ^2(e+f x) \, dx+b^3 \int (c+d x)^m \cosh ^3(e+f x) \, dx \\ & = \frac {a^3 (c+d x)^{1+m}}{d (1+m)}+\frac {1}{2} \left (3 a^2 b\right ) \int e^{-i (i e+i f x)} (c+d x)^m \, dx+\frac {1}{2} \left (3 a^2 b\right ) \int e^{i (i e+i f x)} (c+d x)^m \, dx+\left (3 a b^2\right ) \int \left (\frac {1}{2} (c+d x)^m+\frac {1}{2} (c+d x)^m \cosh (2 e+2 f x)\right ) \, dx+b^3 \int \left (\frac {3}{4} (c+d x)^m \cosh (e+f x)+\frac {1}{4} (c+d x)^m \cosh (3 e+3 f x)\right ) \, dx \\ & = \frac {a^3 (c+d x)^{1+m}}{d (1+m)}+\frac {3 a b^2 (c+d x)^{1+m}}{2 d (1+m)}+\frac {3 a^2 b e^{e-\frac {c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {f (c+d x)}{d}\right )}{2 f}-\frac {3 a^2 b e^{-e+\frac {c f}{d}} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {f (c+d x)}{d}\right )}{2 f}+\frac {1}{2} \left (3 a b^2\right ) \int (c+d x)^m \cosh (2 e+2 f x) \, dx+\frac {1}{4} b^3 \int (c+d x)^m \cosh (3 e+3 f x) \, dx+\frac {1}{4} \left (3 b^3\right ) \int (c+d x)^m \cosh (e+f x) \, dx \\ & = \frac {a^3 (c+d x)^{1+m}}{d (1+m)}+\frac {3 a b^2 (c+d x)^{1+m}}{2 d (1+m)}+\frac {3 a^2 b e^{e-\frac {c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {f (c+d x)}{d}\right )}{2 f}-\frac {3 a^2 b e^{-e+\frac {c f}{d}} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {f (c+d x)}{d}\right )}{2 f}+\frac {1}{4} \left (3 a b^2\right ) \int e^{-i (2 i e+2 i f x)} (c+d x)^m \, dx+\frac {1}{4} \left (3 a b^2\right ) \int e^{i (2 i e+2 i f x)} (c+d x)^m \, dx+\frac {1}{8} b^3 \int e^{-i (3 i e+3 i f x)} (c+d x)^m \, dx+\frac {1}{8} b^3 \int e^{i (3 i e+3 i f x)} (c+d x)^m \, dx+\frac {1}{8} \left (3 b^3\right ) \int e^{-i (i e+i f x)} (c+d x)^m \, dx+\frac {1}{8} \left (3 b^3\right ) \int e^{i (i e+i f x)} (c+d x)^m \, dx \\ & = \frac {a^3 (c+d x)^{1+m}}{d (1+m)}+\frac {3 a b^2 (c+d x)^{1+m}}{2 d (1+m)}+\frac {3^{-1-m} b^3 e^{3 e-\frac {3 c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {3 f (c+d x)}{d}\right )}{8 f}+\frac {3\ 2^{-3-m} a b^2 e^{2 e-\frac {2 c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {2 f (c+d x)}{d}\right )}{f}+\frac {3 a^2 b e^{e-\frac {c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {f (c+d x)}{d}\right )}{2 f}+\frac {3 b^3 e^{e-\frac {c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {f (c+d x)}{d}\right )}{8 f}-\frac {3 a^2 b e^{-e+\frac {c f}{d}} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {f (c+d x)}{d}\right )}{2 f}-\frac {3 b^3 e^{-e+\frac {c f}{d}} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {f (c+d x)}{d}\right )}{8 f}-\frac {3\ 2^{-3-m} a b^2 e^{-2 e+\frac {2 c f}{d}} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {2 f (c+d x)}{d}\right )}{f}-\frac {3^{-1-m} b^3 e^{-3 e+\frac {3 c f}{d}} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {3 f (c+d x)}{d}\right )}{8 f} \\ \end{align*}
Time = 1.21 (sec) , antiderivative size = 447, normalized size of antiderivative = 0.82 \[ \int (c+d x)^m (a+b \cosh (e+f x))^3 \, dx=\frac {2^{-3-m} 3^{-1-m} e^{-3 \left (e+\frac {c f}{d}\right )} (c+d x)^m \left (-\frac {f^2 (c+d x)^2}{d^2}\right )^{-m} \left (2^m b^3 d e^{6 e} (1+m) \left (\frac {f (c+d x)}{d}\right )^m \Gamma \left (1+m,-\frac {3 f (c+d x)}{d}\right )+3^{2+m} a b^2 d e^{5 e+\frac {c f}{d}} (1+m) \left (f \left (\frac {c}{d}+x\right )\right )^m \Gamma \left (1+m,-\frac {2 f (c+d x)}{d}\right )+2^m 3^{2+m} b \left (4 a^2+b^2\right ) d e^{4 e+\frac {2 c f}{d}} (1+m) \left (\frac {f (c+d x)}{d}\right )^m \Gamma \left (1+m,-\frac {f (c+d x)}{d}\right )-e^{\frac {3 c f}{d}} \left (2^m 3^{2+m} b \left (4 a^2+b^2\right ) d e^{2 e+\frac {c f}{d}} (1+m) \left (-\frac {f (c+d x)}{d}\right )^m \Gamma \left (1+m,\frac {f (c+d x)}{d}\right )+3^{2+m} a b^2 d e^{e+\frac {2 c f}{d}} (1+m) \left (-\frac {f (c+d x)}{d}\right )^m \Gamma \left (1+m,\frac {2 f (c+d x)}{d}\right )+2^m \left (-4 3^{1+m} a \left (2 a^2+3 b^2\right ) e^{3 e} f (c+d x) \left (-\frac {f^2 (c+d x)^2}{d^2}\right )^m+b^3 d e^{\frac {3 c f}{d}} (1+m) \left (-\frac {f (c+d x)}{d}\right )^m \Gamma \left (1+m,\frac {3 f (c+d x)}{d}\right )\right )\right )\right )}{d f (1+m)} \]
[In]
[Out]
\[\int \left (d x +c \right )^{m} \left (a +b \cosh \left (f x +e \right )\right )^{3}d x\]
[In]
[Out]
none
Time = 0.10 (sec) , antiderivative size = 813, normalized size of antiderivative = 1.50 \[ \int (c+d x)^m (a+b \cosh (e+f x))^3 \, dx=-\frac {{\left (b^{3} d m + b^{3} d\right )} \cosh \left (\frac {d m \log \left (\frac {3 \, f}{d}\right ) + 3 \, d e - 3 \, c f}{d}\right ) \Gamma \left (m + 1, \frac {3 \, {\left (d f x + c f\right )}}{d}\right ) + 9 \, {\left (a b^{2} d m + a b^{2} d\right )} \cosh \left (\frac {d m \log \left (\frac {2 \, f}{d}\right ) + 2 \, d e - 2 \, c f}{d}\right ) \Gamma \left (m + 1, \frac {2 \, {\left (d f x + c f\right )}}{d}\right ) + 9 \, {\left ({\left (4 \, a^{2} b + b^{3}\right )} d m + {\left (4 \, a^{2} b + b^{3}\right )} d\right )} \cosh \left (\frac {d m \log \left (\frac {f}{d}\right ) + d e - c f}{d}\right ) \Gamma \left (m + 1, \frac {d f x + c f}{d}\right ) - 9 \, {\left ({\left (4 \, a^{2} b + b^{3}\right )} d m + {\left (4 \, a^{2} b + b^{3}\right )} d\right )} \cosh \left (\frac {d m \log \left (-\frac {f}{d}\right ) - d e + c f}{d}\right ) \Gamma \left (m + 1, -\frac {d f x + c f}{d}\right ) - 9 \, {\left (a b^{2} d m + a b^{2} d\right )} \cosh \left (\frac {d m \log \left (-\frac {2 \, f}{d}\right ) - 2 \, d e + 2 \, c f}{d}\right ) \Gamma \left (m + 1, -\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) - {\left (b^{3} d m + b^{3} d\right )} \cosh \left (\frac {d m \log \left (-\frac {3 \, f}{d}\right ) - 3 \, d e + 3 \, c f}{d}\right ) \Gamma \left (m + 1, -\frac {3 \, {\left (d f x + c f\right )}}{d}\right ) - {\left (b^{3} d m + b^{3} d\right )} \Gamma \left (m + 1, \frac {3 \, {\left (d f x + c f\right )}}{d}\right ) \sinh \left (\frac {d m \log \left (\frac {3 \, f}{d}\right ) + 3 \, d e - 3 \, c f}{d}\right ) - 9 \, {\left (a b^{2} d m + a b^{2} d\right )} \Gamma \left (m + 1, \frac {2 \, {\left (d f x + c f\right )}}{d}\right ) \sinh \left (\frac {d m \log \left (\frac {2 \, f}{d}\right ) + 2 \, d e - 2 \, c f}{d}\right ) - 9 \, {\left ({\left (4 \, a^{2} b + b^{3}\right )} d m + {\left (4 \, a^{2} b + b^{3}\right )} d\right )} \Gamma \left (m + 1, \frac {d f x + c f}{d}\right ) \sinh \left (\frac {d m \log \left (\frac {f}{d}\right ) + d e - c f}{d}\right ) + 9 \, {\left ({\left (4 \, a^{2} b + b^{3}\right )} d m + {\left (4 \, a^{2} b + b^{3}\right )} d\right )} \Gamma \left (m + 1, -\frac {d f x + c f}{d}\right ) \sinh \left (\frac {d m \log \left (-\frac {f}{d}\right ) - d e + c f}{d}\right ) + 9 \, {\left (a b^{2} d m + a b^{2} d\right )} \Gamma \left (m + 1, -\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) \sinh \left (\frac {d m \log \left (-\frac {2 \, f}{d}\right ) - 2 \, d e + 2 \, c f}{d}\right ) + {\left (b^{3} d m + b^{3} d\right )} \Gamma \left (m + 1, -\frac {3 \, {\left (d f x + c f\right )}}{d}\right ) \sinh \left (\frac {d m \log \left (-\frac {3 \, f}{d}\right ) - 3 \, d e + 3 \, c f}{d}\right ) - 12 \, {\left ({\left (2 \, a^{3} + 3 \, a b^{2}\right )} d f x + {\left (2 \, a^{3} + 3 \, a b^{2}\right )} c f\right )} \cosh \left (m \log \left (d x + c\right )\right ) - 12 \, {\left ({\left (2 \, a^{3} + 3 \, a b^{2}\right )} d f x + {\left (2 \, a^{3} + 3 \, a b^{2}\right )} c f\right )} \sinh \left (m \log \left (d x + c\right )\right )}{24 \, {\left (d f m + d f\right )}} \]
[In]
[Out]
Exception generated. \[ \int (c+d x)^m (a+b \cosh (e+f x))^3 \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
none
Time = 0.15 (sec) , antiderivative size = 375, normalized size of antiderivative = 0.69 \[ \int (c+d x)^m (a+b \cosh (e+f x))^3 \, dx=-\frac {3}{2} \, {\left (\frac {{\left (d x + c\right )}^{m + 1} e^{\left (-e + \frac {c f}{d}\right )} E_{-m}\left (\frac {{\left (d x + c\right )} f}{d}\right )}{d} + \frac {{\left (d x + c\right )}^{m + 1} e^{\left (e - \frac {c f}{d}\right )} E_{-m}\left (-\frac {{\left (d x + c\right )} f}{d}\right )}{d}\right )} a^{2} b - \frac {3}{4} \, {\left (\frac {{\left (d x + c\right )}^{m + 1} e^{\left (-2 \, e + \frac {2 \, c f}{d}\right )} E_{-m}\left (\frac {2 \, {\left (d x + c\right )} f}{d}\right )}{d} + \frac {{\left (d x + c\right )}^{m + 1} e^{\left (2 \, e - \frac {2 \, c f}{d}\right )} E_{-m}\left (-\frac {2 \, {\left (d x + c\right )} f}{d}\right )}{d} - \frac {2 \, {\left (d x + c\right )}^{m + 1}}{d {\left (m + 1\right )}}\right )} a b^{2} - \frac {1}{8} \, {\left (\frac {{\left (d x + c\right )}^{m + 1} e^{\left (-3 \, e + \frac {3 \, c f}{d}\right )} E_{-m}\left (\frac {3 \, {\left (d x + c\right )} f}{d}\right )}{d} + \frac {3 \, {\left (d x + c\right )}^{m + 1} e^{\left (-e + \frac {c f}{d}\right )} E_{-m}\left (\frac {{\left (d x + c\right )} f}{d}\right )}{d} + \frac {3 \, {\left (d x + c\right )}^{m + 1} e^{\left (e - \frac {c f}{d}\right )} E_{-m}\left (-\frac {{\left (d x + c\right )} f}{d}\right )}{d} + \frac {{\left (d x + c\right )}^{m + 1} e^{\left (3 \, e - \frac {3 \, c f}{d}\right )} E_{-m}\left (-\frac {3 \, {\left (d x + c\right )} f}{d}\right )}{d}\right )} b^{3} + \frac {{\left (d x + c\right )}^{m + 1} a^{3}}{d {\left (m + 1\right )}} \]
[In]
[Out]
\[ \int (c+d x)^m (a+b \cosh (e+f x))^3 \, dx=\int { {\left (b \cosh \left (f x + e\right ) + a\right )}^{3} {\left (d x + c\right )}^{m} \,d x } \]
[In]
[Out]
Timed out. \[ \int (c+d x)^m (a+b \cosh (e+f x))^3 \, dx=\int {\left (a+b\,\mathrm {cosh}\left (e+f\,x\right )\right )}^3\,{\left (c+d\,x\right )}^m \,d x \]
[In]
[Out]